package com.ybwh.springboot2.clearing.service.impl;

import com.ybwh.springboot2.clearing.entity.Area;
import com.ybwh.springboot2.clearing.mapper.AreaMapper;
import com.ybwh.springboot2.clearing.service.IAreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fanbeibei
 * @since 2020-04-10
 */
@Service
public class AreaServiceImpl  implements IAreaService {
    @Resource
    private AreaMapper  areaMapper;

    /**
     * 之所以要生成以下方法而不直接用mybatis-plus的原始方法，是为了方便追溯某个mapper调用代码,
     * 避免find use后找出一批无关的代码
     */

    @Override
    public int insert(Area entity) {
        return areaMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return areaMapper.deleteById(id);
    }

    @Override
    public int deleteBatchIds(Collection<? extends Serializable> idList) {
        return areaMapper.deleteBatchIds(idList);
    }

    @Override
    public int updateById(Area entity) {
        return areaMapper.updateById(entity);
    }

    @Override
    public Area selectById(Serializable id) {
        return areaMapper.selectById(id);
    }

    @Override
    public List<Area> selectBatchIds(Collection<? extends Serializable> idList) {
        return areaMapper.selectBatchIds(idList);
    }

/**------------以上是生成代码-----------------------------------------------------------------------------------------------------------------*/




}
